<?php
/**
 * User: Mark
 * Time: 13-1-10 上午9:41
 */
include '../../../common.inc.php';
include 'fun.php';
$mysqli = new mysqli('localhost', 'root', '', 'test_data');

$start = isset($start) ? (int) $start : 0;
$sql = "select id, leimu from koubei_myisam2 where id>{$start} and catids ='' order by id ASC limit 100";
$result = $mysqli->query($sql);
$res = $result->fetch_all(MYSQLI_ASSOC);
if (!$res) exit('No More Results');

foreach ($res as $r) {
	// serviceid
}
$start = (int) ($r['id']);
echo '<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?start='.$start.'" />';
echo '<pre style="font-size:100px;">';
echo $r['id'] .'-'. $r['leimu'];
?>